class Student():
    def __init__(self,name,age,score):
        self.__name = name
        self.__age = age
        self.__score = score
    def getName(self):
        return self.__name
    def getAge(self):
        return self.__age
    def getScore(self):
        print(f"{self.getName()}的年龄为:{self.getAge()},总分为:{sum(self.__score)}")
        print(f"{self.getName()}的平均分为:{sum(self.__score)/len(self.__score):.2f}")

stu = Student("小明", 18, [85,86,87])
stu.getScore()
